package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author youli.chen
 * @version v1.0
 * @description: 验证手机验证码入参
 * @date 2019/2/16 19:45
 * @since v1.0
 */
@Setter
@Getter
@ToString
public class CallMobileCodeVerifyDTO extends BaseDTO {

    /**
     * 微应用标识，参考CallCenterTypeEnum
     */
    @NotNull(message="{dto.msg.callAccountRegister.moduleType.NotNull}")
    private Integer moduleType;

    /**
     * 注册号码
     */
    @NotBlank(message="{dto.msg.callMobileCodeSend.mobile.NotBlank}")
    private String mobile;

    /**
     * 验证码
     */
    @NotBlank(message="{dto.msg.callMobileCodeVerify.mobileCode.NotBlank}")
    private String mobileCode;
}
